package crivia.db.a;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import crivia.db.i.Specially;

public abstract class Specially_Abstract implements Specially {
	
	protected List<String> speciallySQLs = new ArrayList<String>();
	
	protected Map<String ,String> speciallySQLMap = new HashMap<String, String>();

	@Override
	public String speciallySQL(int index) {
		return speciallySQLs.get(index);
	}
	
	public void setSpeciallySQLs(List<String> speciallySQLs) {
		this.speciallySQLs = speciallySQLs;
	}
	public void addSpeciallySQL(String speciallySQL) {
		this.speciallySQLs.add(speciallySQL);
	}

	@Override
	public String speciallySQL(String name) {
		return speciallySQLMap.get(name);
	}
	
	public void setSpeciallySQLMap(Map<String, String> speciallySQLMap) {
		this.speciallySQLMap = speciallySQLMap;
	}
	public void addSpeciallySQL(String name , String speciallySQL) {
		this.speciallySQLMap.put(name, speciallySQL);
	}

}
